package com.zmzncs.lmtc.common.exception;

/**
 * Created by oracle on 17/1/18.
 */
public abstract class BaseException extends Exception {
    private static final long serialVersionUID = 5L;

    public int getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(int returnCode) {
        this.returnCode = returnCode;
    }

    public int getMessageCode() {
        return messageCode;
    }

    public void setMessageCode(int messageCode) {
        this.messageCode = messageCode;
    }

    protected int returnCode;
    protected int messageCode;

    public BaseException(int returnCode, int messageCode, String message){
        super(message);
        setReturnCode(returnCode);
        setMessageCode(messageCode);
    }

}
